<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>Document</title>
		<link rel="stylesheet" href="/public/lib/bootstrap.min.css" />
		<link rel="stylesheet" href="/public/css/index.css" />
	</head>
	<body>
		<h2>Message Board-<span>leave what you want to say here</span></h2>
		<button type="button" class="btn btn-success"><a href="./post/">编写留言</a></button>
		<hr />
		<div class="list-group">
            {{ each comments }}
			<a href="javascript:void(0)" class="list-group-item list-group-item-action">
				<div class="d-flex w-100 justify-content-between">
					<h5 class="mb-1 text-success">{{ $value.name }}</h5>
					<small class="text-muted">{{ $value.add_time | dateFormat 'yyyy-MM-dd hh:mm:ss' }}</small>
				</div>
				<p class="mb-1">{{ $value.content }}</p>
            </a>
            {{ /each }}
        </div>
	</body>
</html>
